<%@ page import="com.meila.cms.model.CarDesignModel"%>
<%@ page import="com.meila.cms.util.config.Property"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"  contentType="text/html; charset=utf8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"  %> 
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%
 
 String path = request.getContextPath();
 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<%
  
 CarDesignModel carDesignModel=(CarDesignModel)request.getAttribute("carDesignModel");
 String logopart = request.getParameter("logopart");
 
 if("1".equals(logopart)){
 
     request.setAttribute("content",carDesignModel.getCarsidelogo());
 
 }else if("2".equals(logopart)){
 
     request.setAttribute("content",carDesignModel.getCarfrontlogo());
 
 }else if("3".equals(logopart)){
 
     request.setAttribute("content",carDesignModel.getCarafterlogo());
 
 }
 
%>

<!DOCTYPE HTML>
<html lang="zh-CN">
  <head>
 
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
       
    <title>外观改变</title>
    <base href="<%=basePath%>">
    <link href="resources/css/system/carDesign/design.css" rel="stylesheet"></link>
 
	<!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
  </head>
  
  <body class="client-body clm-body whiteActive" id="loading">
  
  	    <jsp:include page="../common/design-head.jsp"></jsp:include>
	  	<script src="resources/js/system/carDesign/designCommon.js"></script>
	  	<script src="resources/js/system/carDesign/designCar.js"></script>
  
  		<!-- 左 -->
  		<div class="design-body design-bodyLeft">
			<div class="design-leftTag">车型号</div>
			<div class="design-leftmenu fontBox clearfix">
				<a class="a-black activeFont" href="javascript:;">${carDesignModel.cartypeName}</a>
			</div>
			
			<div class="left-oneImgList listImgBox">
					<div class="left-oneImgBlock leftImgBlock activeImg">
						<div class="left-oneImgBox"><img src="<%=Property.getProperty("FILESERVER_PATH") %>?id=${param.logopart==1?  carDesignModel.carsidepic:(param.logopart==2? carDesignModel.carfrontpic:carDesignModel.carafterpic)}"/></div>
						<div class="left-oneImgName">${carDesignModel.name}</div>
					</div>
			</div>
		</div>
  	 <form   id="carLogoform">
  		<!-- 中 -->
  		<div class="design-body design-bodyMiddle">
			<a class="a-white clm-goBack" href="front/carDesign/carDesignModify?id=${param.id}"><i class="fa fa-reply"></i></a>
			
			<div class="design-middleActions">
				<a class="a-white activeBtn" href="front/carDesign/carDesignModify?id=${param.id}"><i class="fa fa-arrow-right"></i></a>
				<a class="a-white" href="javascript:;"><i class="fa fa-download"></i></a>
				<a class="a-white" href="javascript:;"><i class="fa fa-refresh"></i></a>
			</div>
	
			<div class="middle-towImgList middle-carLogo">
				
					<div class="clm-carLogo"><img src="resources/images/carSide.png"/></div>

					<div class="clm-kindEdit">
						<jsp:include page="../common/kindEdit.jsp"></jsp:include>
					</div>
				
			</div>
			
  		</div>
  		
  		<!-- 右 -->
  		<div class="design-body design-bodyRight">
			<div class="design-leftTag">细节设置</div>
			
			<div class="design-rightForm">
				<div class="form-horizontal">
				   <div class="rightFormDown"> 
					  <div class="form-group">
					    <label class="col-sm-4 control-label">设计名</label>
					    <div class="col-sm-8">
 
							  <input id="type"      name="type"    type="hidden" value="2">
							  <input id="logopart"  name="logopart"    type="hidden" value="${param.logopart}">
							  <input id="id"        name="id"    type="hidden" value="${carDesignModel.id}">
                              <input id="designname" name="designname" class="form-control" type="text"  value="${carDesignModel.designname}">
					    </div>
					  </div>
					  
					  <div class="form-group">
					    <label class="col-sm-4 control-label">型号</label>
					    <div class="col-sm-8">
					      <div class="rightForm-carType">${carDesignModel.cartypeName}</div>
					    </div>
					  </div>
					  
	 
					  <div class="form-group">
					    <label class="col-sm-4 control-label">备注</label>
					    <div class="col-sm-8">
					       <textarea name="comment">${carDesignModel.comment}</textarea>
					    </div>
					  </div>
				 	</div><!-- rightFormDown -->
				 	
			        <div class="form-group">
					    <div class="col-sm-12 rightForm-footBtn">
				            <a class="btn btn2 a-white" href="javascript:this.location.reload()">重置</a>
				            <a class="btn btn2 right a-white" href="javascript:submitCarLogoModify();">保存修改</a>
					    </div>
				    </div>
				</div>
			</div>
		</div>
  	  </form>
  	<!-- Modal -->
	<div class="modal fade" id="carModifyModal" tabindex="-1" role="dialog" aria-labelledby="carModifyModalLabel" data-backdrop="static">
	  <div class="modal-dialog modal-sm">
 
		    <div class="modal-content">
		      
		      <div class="modal-body">
				  <div class="carModal-body">
				    <i class="fa fa-check-circle"></i>
				    <span>您已填写完成</span>
				  </div>
		      </div>
		      
		      <div class="modal-footer carModal-footer">
		        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
		      </div>
		      
		    </div>
 
	  </div>
	</div>
  	
  	

  </body>
</html>
